import { Submenu } from "element-ui";

// 解决pad端收起菜单时，点击菜单时出现两次弹出子菜单，重复触发Mouseenter问题
const _handleMouseenter = Submenu.methods.handleMouseenter;
Submenu.methods.handleMouseenter = function (event) {
  _handleMouseenter.call(this, event, 100);
  if (this.rootMenu.collapse && this.opened) {
    //event.target.className.indexOf("el-menu--vertical") != -1
    clearTimeout(this.timeout);
  }
};
